﻿using BussinessObject.ObjectOne;
using Class_Entity.ObjectOne;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectHK3
{
    public partial class BranchesDetail : System.Web.UI.Page
    {
        private int _branchId;
        B_Branches ex = new B_Branches();
        C_Branches fx = new C_Branches();
        protected void Page_Load(object sender, EventArgs e)
        {
            _branchId = Convert.ToInt32(Session["_branchId"].ToString());

            if (!IsPostBack)
            {
                this.loadData();
            }
        }
        public void loadData()
        {           

            fx = ex.LoadDetail(_branchId);

            Label2.Text = fx.BRANCH_CODE.ToString();
            Label4.Text = fx.BRANCH_NAME.ToString();
            Label6.Text = fx.ADDRESS.ToString();
            Label8.Text = fx.BRANCH_PHONE.ToString();
            Label10.Text = fx.DESCRIPTION.ToString();
        }
    }
}